import request from '@/utils/request'


// 领导值班
export function inspectionList(query) {
    return request({
      url: '/app/inspection/list',
      method: 'post',
      data: query
    })
}


// 新增
export function inspectionAdd(query) {
    return request({
      url: '/app/inspection/add',
      method: 'post',
      data: query
    })
  }

// 修改
export function inspectionEdit(query) {
    return request({
      url: '/app/inspection/edit',
      method: 'post',
      data: query
    })
  }

// 删除
export function inspectionRemove(id) {
    return request({
      url: '/app/inspection/' + id,
      method: 'delete'
    })
  }
  //值班信息
  export function sitelogList(query) {
    return request({
      url: '/app/sitelog/getAlldata',
      method: 'post',
      data: query
    })
}
// 签到/提交表
export function sitedetaildAdd(query) {
    return request({
      url: '/app/sitedetail/add',
      method: 'post',
      data: query
    })
  }
// 修改
export function sitedetaildEdit(query) {
    return request({
      url: '/app/sitedetail/edit',
      method: 'post',
      data: query
    })
  }
  
// 新增日志
export function sitelogAdd(query) {
    return request({
      url: '/app/sitelog/add',
      method: 'post',
      data: query
    })
  }
// 修改日志
export function sitelogEdit(query) {
    return request({
      url: '/app/sitelog/edit',
      method: 'post',
      data: query
    })
  }
  









// 班前会
export function meetingList(query) {
  return request({
    url: '/app/meeting/list',
    method: 'get',
    params: query
  })
}

// 新增
export function meetingAdd(query) {
  return request({
    url: '/app/meeting/add',
    method: 'post',
    data: query
  })
}
// 修改
export function meetingEdit(query) {
  return request({
    url: '/app/meeting/edit',
    method: 'post',
    data: query
  })
}
// 删除
export function meetingRemove(id) {
    return request({
      url: '/app/meeting/' + id,
      method: 'delete'
    })
  }
// 查看签到人员
export function recordList(query) {
  return request({
    url: '/app/record/list',
    method: 'get',
    params: query
  })
}
// 签到
export function recordAdd(query) {
  return request({
    url: '/app/record/add',
    method: 'post',
    data: query
  })
}
// 导出
export function recordExport(query) {
  return request({
    url: '/app/sitelog/export',
    method: 'post',
    data: query
  })
}



